#![allow(unused)]

// Rust会从与模块同名的文件夹中的同名文件中加载内容
pub mod hosting;

mod serving {
    fn take_order() {}
    fn serve_order() {
        super::super::root_func();
    }
}

fn take_payment() {
    super::root_func();
    crate::root_func();
}

pub struct Car {
    pub name: String,
    price: f64,
}

impl Car {
    pub fn new(name: String, price: f64) -> Car {
        Car {
            name,
            price,
        }
    }
    fn drive(&self) {
    }
}

pub enum Decision {
    OK,
    NO,
}